package com.pm.project.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.pm.common.core.domain.model.POJOEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class ProjectModifyRecord extends POJOEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long projectListId;

    private String oaId;

    private String oaNo;

    private Integer status;

    private String remark;

    private String type;

    /**
     * 变更后的项目经理ID
     */
    private Long modifyProjectManagerId;

    /**
     * 变更前的项目经理ID
     */
    private Long oldProjectManager;

    /**
     * 变更后的项目经理名称
     */
    @TableField(exist = false)
    private String modifyProjectManagerName;


    /**
     * 变更前的项目经理名称
     */
    @TableField(exist = false)
    private String oldProjectManagerName;

    @TableField(exist = false)
    private List<ProjectModifyRecordDetail> projectModifyRecordDetailList;

}
